window.setInterval(function() {
	var id = document.getElementById("fr_wxpay").getAttribute('data-id');
	Ajax.call('/wxpay/wxpay_query.php', 'id=' + id, function(res){
		if (res.status == 1) {
			alert('支付成功');
                        if (res.url != '') {
                            window.location.href = res.url;
                        }else{
                            window.location.reload();
                        }
		}
	}, 'POST', 'JSON');
},3000);
